package com.farmUni.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.farmUni.entity.Article;
import com.baomidou.mybatisplus.extension.service.IService;
import com.farmUni.entity.Vo.ArticleAddVO;
import com.farmUni.entity.Vo.ArticleDetailVO;
import com.farmUni.entity.Vo.ArticleShowVO;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author wxy
 * @since 2024-02-04
 */
public interface ArticleService extends IService<Article> {
    Page<ArticleShowVO> getShowListPlus(int current, int size, String matching);

    Page<ArticleShowVO> getShowList(int current,int size);

    public Page<ArticleShowVO> getMyPage(int current, int size);

    Boolean add(ArticleAddVO articleAddVO);

    ArticleDetailVO getDetail(Long id);

    List<ArticleShowVO> getCultureOrImpressRec(String type);

    List<ArticleShowVO> search(String keyword);

    List<ArticleShowVO> getTopArticle();

    List<ArticleShowVO> getMarket();

    List<ArticleShowVO> getFrontier();

    List<ArticleShowVO> getPolicy();

    List<ArticleShowVO> getMedication();


    List<ArticleShowVO> getEducation(String edu);

    List<Long> getArticleIdsOrderByLiking(int offset, int limit);

    List<ArticleShowVO> getRecArticle();
}
